/**
 * 绘制点对象
 * @requires OpenLayers/Control/DrawFeature.js
 * @class OpenLayers.Control.DrawPointFeature
 * @author cqb
 */
OpenLayers.Control.DrawPointFeature = OpenLayers.Class(OpenLayers.Control.DrawFeature, {
	type : OpenLayers.Control.TYPE_TOOL,
	title : '画点',
	/**
     * Constructor: OpenLayers.Control.DrawFeature
     * 
     * Parameters:
     * layer - {<OpenLayers.Layer.Vector>} 
     * options - {Object} 
     */
    initialize: function(options) {
        this.layer = options.layer;
        
        var handler = OpenLayers.Handler.Point;
        
        OpenLayers.Control.DrawFeature.prototype.initialize.apply(this, [this.layer, handler, options]);
    },
    
    /**
     * APIMethod: activate
     * Activate the control and the feature handler.
     * 
     * Returns:
     * {Boolean} Successfully activated the control and feature handler.
     */
    activate: function() {
    	this.map.layerContainerDiv.style.cursor = "url("+OpenLayers.Util.getRootPath() + "img/point.ico) 5 10,auto";
        return OpenLayers.Control.DrawFeature.prototype.activate.apply(this,arguments);
    },
    
    deactivate: function(){
    	this.map.layerContainerDiv.style.cursor = this.map.defaultCursor;
    	OpenLayers.Control.DrawFeature.prototype.deactivate.apply(this,arguments);
    },
    
    CLASS_NAME: "OpenLayers.Control.DrawPointFeature"
});